<?php

/**
 * Created by PhpStorm.
 * User: lyang
 * Date: 2016/12/31
 * Time: 23:35
 */
class Crypt
{
    public function password($string){
        return substr(hash("tiger192,3",$string,false),0,16);
    }
    public function encode($str){
        return base64_encode($str);
    }
    public function decode($str){
        return base64_decode($str);
    }
}